package test.demos.utils;

import java.util.Random;

public class RandomUtil {

    private static Random random = new Random();
    
    public static int getRandomIntByRange(int startVal,int endVal){
        return random.nextInt(endVal) + startVal;
    }
    
    public static void main(String[] args) {
        while(true){
            System.out.println(getRandomIntByRange(1, 100));
        }
    }
    
}
